package com.itheima;


import java.util.*;
import java.util.stream.Stream;


public class SteamLiu {
    public static void main(String[] args) {
        List<String> arr = new ArrayList<>();
        arr.add("11");
        arr.add("22");
        arr.add("33");
        arr.stream().forEach(s -> System.out.println(s));

        Map<String, String> mp = new HashMap<>();
        mp.put("zhangsan", "tianjin");
        mp.put("lisi", "shanghai");
        mp.put("wangwu", "wuhan");
        mp.put("zhaoliu", "beijin");

        mp.keySet().stream().forEach(s -> System.out.println(s));


        Stream.of(11, 22, 33, 44).forEach(s -> System.out.println(s));
        Stream.of("www", "ssss", "bbbb").forEach(s -> System.out.println(s));

        int[] arr3 = {11, 22, 33, 44};
        Arrays.stream(arr3).forEach(s -> System.out.println(s));

    }
}
